Configuring a Cross-Compiler

Contents|Index|Previous|Next
Configuring a cross-compiler

To build GNU CC as a cross-compiler, you start out by running configure. Use the command, ‘--target=target’, where `target` is the configuration for which you want to specify to run from the host system.

If configure was unable to correctly identify the system you are running on, specify the option, ‘--build=build’. For example, the following shows how to configure for a cross-compiler that produces code for an HP 68030 system running BSD on a system that configure can correctly identify.

    ./configure—target=m68k-hp-bsd4.3